package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

import liumengbaio.lolzhangyoubao.R;

/**
 * Created by lanouhn on 16/9/12.
 */
public class GeussActivity extends AppCompatActivity implements View.OnClickListener {
    private Button edit_head_left_title,btn_geuss_wel;
    private RelativeLayout have_onclick;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.geuss_activity);
        initView();
        iniData();
    }

    private void iniData() {
        edit_head_left_title.setOnClickListener(this);
        have_onclick.setOnClickListener(this);
        btn_geuss_wel.setOnClickListener(this);
    }

    private void initView() {
        edit_head_left_title = (Button) findViewById(R.id.edit_head_left_title);
        have_onclick = (RelativeLayout) findViewById(R.id.have_onclick);
        btn_geuss_wel= (Button) findViewById(R.id.btn_geuss_wel);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.edit_head_left_title:
                finish();
                break;
            case R.id.have_onclick:
                break;
            case R.id.btn_geuss_wel:
                Intent intent_geuss_wel=new Intent(GeussActivity.this,GeussWelActivity.class);
                startActivity(intent_geuss_wel);
                break;
        }
    }
}
